$font-color: antiquewhite;

@mixin line{
  line-height: 41px;
}

@mixin space{
  padding: 0;
  margin: 0;
}

@mixin btn{
  border: none;
  width: 100%;
  height: 15%;
  font-size: 17px;
  background:#0d76e1;
  color:white;
}

html,body{
  width: 100%;
  height: 100%;
  @include space;
}

ul{
  list-style-type:none
}

a{
  cursor: pointer;
  text-decoration:none;
  color: white;
  display: inline-block;
}

button{
  cursor: pointer;
}

.head{
  &{
    height: 47px;
    background: #0661bd;
  }
  .search{
    float: left;
    margin: 8px 15px 0 15px;
    width: 300px;
    padding: 8px;
    border-radius: 5px;
    border: none;
    outline:none;
  }
  .quiz{
    padding: 5px 16px;
    font-size: 15px;
    margin: 8px 2% 8px 10%;
    background-color: #0d76e1;
    color: white;
    border: 1px solid #0661bd;
    border-radius: 5px;
    outline: none;
  }
  .top-login,.top-regist,.top-divide{
    color:$font-color;
    font-size: 14px;
  }
  .top-login:hover{
    color:white;
  }
  .top-regist:hover{
    color:white;
  }
}

.head-nav{
  &{
    @include space;
    @include line;
    height:100%;
    display: inline-block;
    line-height: 46px;
    float: left;
  }
  li{
    list-style-type:none;
    float:left;
  }
  a{
    padding: 0 12px;
    color: $font-color;
  }
  a:hover{
    color: white;
  }
  .home{
    background: #061dbd;
  }
}

.h1{
  @include line;
  font-size: 26px;
  margin-left: 15%;
  float: left;
}

.login-box {
  &{
    height: 80%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .user-back{
    @include btn;
    width: 49%;
  }
}

.user-login{
  &{
    height: 245px;
    width: 300px;
    padding: 0 30px;
    border: 1px solid #C0C0C0;
  }
  .password,.username{
    font-size: 19px;
    width: 65%;
  }
  p{
    font-size: 21px;
    font-weight: 600;
    color: #3c3c3c;
  }
  label{
    width: 20%;
    font-size: 22px;
  }
  .submit{
    @include btn;
  }
}

.content{
  width: 80%;
  margin: 0 auto;
}

.content-title{
  clear: both;
  color: #444;
  font-weight: bold;
}

ul.x-menu{
  &{
    padding-top: 15px;
    border-top: 1px solid #C0C0C0;
  }
  li{
    display: inline-block;
  }
  li.x-menu-title{
    cursor: pointer;
    color: #259;
    font-weight: bold;
    font-size: 19px;
    display: inline-block;
  }
}

ul.HomeEntry-box{
  &{
    background: #fafafa;
    border: 1px solid #f0f0f0;
    float: left;
    width: 50%;
    margin: 25px 0;
  }
  li{
    float: left;
    padding: 15px 25px;
    color: #0661bd;
  }
  a{
    color: #0661bd;
  }
}

.input-title{
  margin: 15px 0;
  border: none;
  width: 80%;
  font-size: 22px;
  padding: 5px;
}

span.write-publish{
  display: inline-block;
  height: 40px;
  width: 90px;
  line-height: 40px;
  text-align: center;
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
  color: #C0C0C0;
  margin-left: 60px;
}

span.write-publish:hover{
  color: #0d76e1;
}

img.x-images{
  height: 150px;
  width: 150px;
  margin: 13px;
  float: left;
  overflow: auto;
}

div.x-image-menu{
  height: 200px;
  width: 100%;
  border: 1px solid #C0C0C0;
}

img.x-menu-image{
  height: 140px;
  width: 230px;
  border-radius: 5px;
  float: left;
  margin-right: 12px;
}

li.x-content{
  width: 100%;
}
li.x-username{
  font-weight: bold;
}